<?php get_header(); ?>


        <div class="blocLeft">

            <div id="dle-content">
                <?php if (have_posts()) : ?>
					<?php while (have_posts()) : the_post(); ?>
				
                <div class="article">
                	<div class="categ segoeLi"><img src="<?php bloginfo( 'stylesheet_directory' ); ?>/images/category.png" width="16" height="16"><?php the_category(', ');?></div>
                	<h2 class="segoeLi"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
                    <div class="articleAuthor">Post by <?php the_author_posts_link() ?> &nbsp;at&nbsp; <?php the_time('F jS, Y') ?></div>
                    <div class="imgArticle">
                    	<div class="scrollImgArticle">
                    	<img src="<?php 
							if ( get_post_meta(get_the_ID(), 'thumbpic', true) ) { 
    							echo get_post_meta(get_the_ID(), 'thumbpic', true); 
							} else {
								echo bloginfo( 'stylesheet_directory' ).'/images/defaultpic.jpg';
							}
							?>
							" height="140" width="628">
                        <span style="display: none;"><?php the_tags(); ?></span>
                        </div>
                    </div>
                    <?php the_content(' '); ?>
                    <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »','nbComments linkMore segoeLi'); ?>
                    
                    <a class="moreInfos linkMore segoeLi" href="<?php the_permalink() ?>">Read more</a>
                    <div class="clear"></div>
                </div>

                    <?php endwhile; ?>
                <ul class="pagination segoeLi">
                	<li class="pagePrec">&nbsp;<?php next_posts_link('Prec') ?></li>
                    <li class="pageSuiv">&nbsp;<?php previous_posts_link('Next') ?></li>
                </ul>
                <?php else : ?>
					<div class="conditions_header"><div class="segoeLi conditions_header_titre">Articles Not Found</div></div>
                    <div style="margin-left:20px; margin-right:20px; margin-top:20px;">

						<p style="font-size:16px;">Sorry, but nothing matched your search criteria. </p>
                        <p style="font-size:16px;">Please try again with some different keywords.</p>
						
 
 
					</div>
					
				<?php endif; ?>

            </div>

            </div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>